package com.hdwx.weike.service.impl;

import com.hdwx.weike.dao.UserDao;
import com.hdwx.weike.service.IUserService;

/**
 * Created by hdwx on 2016/12/24.
 */
public class UserServiceImpl implements IUserService{
    final UserDao dao=new UserDao();
    @Override
    public boolean login(String account, String password) {//登录
        boolean b = dao.queryByAccountAndPassword(account, password);
        return b;
    }

    @Override
    public boolean searchAccount(String account) {
        boolean b=dao.queryBy("account",account);
        return b;
    }
}
